<?php
/**
 * Created by PhpStorm.
 * User: 24369
 * Date: 2021/6/26
 * Time: 11:24
 */
namespace app\admin\validate;

use think\Validate;

class AdminValidate extends Validate
{
    protected $rule=[
        'name'=>'require',
        'email'=>'require',
        'group_id'=>'require',
        'pwd'=>'require',
    ];
    protected $scene=[
        'add'=>['name','email','group_id','pwd'],
        'edit'=>['email','group_id']
    ];
}